package in.iqing.model.bean;

import com.alibaba.fastjson.annotation.JSONField;

/**
 * Created by ZuoShu on 2015/7/18.
 */
public class AuthResult {
    //    -1: generate error
//    0: success
//    1: system missing
//    2: system invalid
//    3: user disabled
//    4: login failed
//    5: code missing
//    6: code invalid
//    7: mobile missing
//    8: password missing
//    9: mobile was registered
//    10: token missing
//    11: reset password failed
//    12: type invalid
//    13: token invalid
//    14: file missing
//    15: unsupported mime type
//    16: avatar upload failed
    public static final int SERVER_FAILED = -1;
    public static final int LOGIN_FAILED = 4;
    public static final int CODE_MISSING = 5;
    public static final int CODE_INVALID = 6;
    public static final int MOBILE_DUPLICATE = 9;
    @JSONField(name = "msg")
    private String msg;

    @JSONField(name = "code")
    private int code;

    @JSONField(name = "data")
    private String data;

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "AuthResult{" +
                "msg='" + msg + '\'' +
                ", code=" + code +
                ", data='" + data + '\'' +
                '}';
    }
}
